package com.haiyi.activiti.engine.query.impl;

import com.haiyi.activiti.engine.model.entity.FormModel;
import com.haiyi.activiti.engine.framework.database.AbstractQuery;
import com.haiyi.activiti.engine.query.FormModelQuery;
import com.haiyi.activiti.engine.service.IFormModelService;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/12/6 15:24 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class FormModelQueryImpl
        extends AbstractQuery<FormModelQuery, FormModel, IFormModelService>
        implements FormModelQuery{

    private String iid;
    private String submitTableName;
    private String formResourceId;
    private String ruleEngineId;
    private String type;
    private String flowId;

    @Override
    public FormModelQuery iid(String iid) {
        this.iid = iid;
        return this;
    }

    @Override
    public FormModelQuery submitTableName(String submitTableName) {
        this.submitTableName = submitTableName;
        return this;
    }

    @Override
    public FormModelQuery formSourceId(String formSourceId) {
        this.formResourceId = formSourceId;
        return this;
    }

    @Override
    public FormModelQuery ruleEngineId(String ruleEngineId) {
        this.ruleEngineId = ruleEngineId;
        return this;
    }

    @Override
    public FormModelQuery type(String type) {
        this.type = type;
        return this;
    }


    public String getIid() {
        return iid;
    }

    public String getSubmitTableName() {
        return submitTableName;
    }

    public String getFormResourceId() {
        return formResourceId;
    }

    public String getRuleEngineId() {
        return ruleEngineId;
    }

    public String getType() {
        return type;
    }

    public String getFlowId() {
        return flowId;
    }
}
